package com.anlogic.sdk.bootimage.internal.ui.common;

public class FileBrowseInput implements IFileBrowseInput {
	private String title;

	private String[] extensions;

	private String prefKey;

	private int type;

	private String fileName;

	private String filterPath;

	private FileBrowseInput(String title, String prefKey, String[] extensions, int type) {
		this.title = title;
		this.extensions = extensions;
		this.prefKey = prefKey;
		this.type = type;
	}

	public static FileBrowseInput createOpenDialogInput(String title, String prefKey, String[] extensions) {
		return new FileBrowseInput(title, prefKey, extensions, 4096);
	}

	public static FileBrowseInput createSaveDialogInput(String title, String prefKey, String[] extensions) {
		return new FileBrowseInput(title, prefKey, extensions, 8192);
	}

	public String[] getExtensions() {
		return this.extensions;
	}

	public void setExtensions(String[] extensions) {
		this.extensions = extensions;
	}

	public String getPrefKey() {
		return this.prefKey;
	}

	public void setPrefKey(String prefKey) {
		this.prefKey = prefKey;
	}

	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFilterPath() {
		return this.filterPath;
	}

	public void setFilterPath(String filterPath) {
		this.filterPath = filterPath;
	}

	public int getType() {
		return this.type;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
